package cn.cxyxj.code_auth_jwt_persistence_prod.common;

public interface RedisKey {

    String TOKEN = "token:%s";

    /**
     * user-token:1
     */
    String USER_TOKEN = "user-token:%s";

    String USER_CLIENT = "user_client:%s";
    /**
     * 验证码
     */
    String VERIFY_CODE = "verify-code:%s";

    /**
     * 登录失败次数
     */
    String LOGIN_FAILED_NUMBER = "login-failed-number:%s";

    /**
     * 使用扫码登录绑定
     */
    String SCAN_LOGIN_SEND_CODE = "scan-login-send-code:%s";
    /**
     * 邮箱验证码
     */
    String EMAIL_CODE = "email-code:%s%s%s";

    String SSO_USER_TOKEN = "sso_user_token";

    String ACCESS = "client_access_token:%s:%s:%s";
    String REFRESH = "client_refresh_token:%s:%s:%s";

    String CLIENT_ACCESS_TOKEN = "client_token:%s:%s";

    String CLIENT_REFRESH_TOKEN = "client_refresh_token:%s:%s";

    String RESOURCES_ACCESS_TOKEN = "client_access_token:%s";
}
